<div class="page-content">
    <div class="col-sm-6 pull-right">
        <span class="btn btn-sm btn-primary pull-right" onclick="javascript:window.location.href = 'info'">
            添加
            <i class="icon-reply icon-only"></i>
        </span>
    </div>
    <div class="page-header">
        <h1>
            {:model('menu')->getName()}
        </h1>
    </div><!-- /.page-header -->

    <div class="row-fluid">
        <form action="{:url('user/index')}" method="get" class="form-inline well well-small">
            <div class="row-fluid">
            关键字：<input type="text" name="keywork" value="" style="width: 30%" placeholder="用户名" autocomplete="off">

            <button type="submit">搜索</button>

            </div>
        </form>
    </div>
    
    <div class="row">
        <div class="col-xs-12">
            <!-- PAGE CONTENT BEGINS -->
            <div class="row">
                <div class="col-xs-12">
                    <table id="simple-table" class="table  table-bordered table-hover">
                        <thead>
                            <tr>
                                <th class="detail-col">序号</th>
                                <th>用户名</th>
                                <th>头像</th>
                                <th>性别</th>
                                <th>手机号码</th>
                                <th>城市</th>
                                <th>添加时间</th>
                                <th>管理员操作</th>
                            </tr>
                        </thead>

                        <tbody>
                            {volist name="data" id="vo"}
                            <tr>

                                <td>{$vo.id}</td>
                                <td width="10%">{$vo.nickname}</td>
                                <td width="20%"><img src="{$vo.headimgurl}" width="35%" /></td>
                                <td>
                                    {eq name="vo.sex" value="1"}男{/eq}
                                    {eq name="vo.sex" value="2"}女{/eq}
                                </td>
                                <td width="20%">{$vo.mobile}</td>
                                <td>{$vo.city}</td>
                                <td>{$vo.create_time|default=time()|date='Y-m-d',###}</td>
                                <td>
                                    <div class="hidden-sm hidden-xs btn-group">

                                        <a href=''
                                           <span class="btn btn-xs btn-info">
                                                <i class="ace-icon fa fa-pencil bigger-120"></i>
                                            </span>
                                        </a>
                                        <a href='javascript:void(0)' onclick="return alert_del('{:url(\"del\",\"id=$vo[id]\")}', '确认要删除『 id={$vo.id} 』这条记录吗？');"
                                           <span class="btn btn-xs btn-danger">
                                                <i class="ace-icon fa fa-trash-o bigger-120"></i>
                                            </span>
                                        </a>
                                        <a href='{:url("rule","gid=$vo[id]")}'
                                           <span class="btn btn-xs btn-purple">
                                                <i class="ace-icon fa fa-eye bigger-120"></i>
                                            </span>
                                        </a>
                                    </div>

                                    <div class="hidden-md hidden-lg">
                                        <div class="inline pos-rel">
                                            <span class="btn btn-minier btn-primary dropdown-toggle" data-toggle="dropdown" data-position="auto">
                                                <i class="ace-icon fa fa-cog icon-only bigger-110"></i>
                                            </span>

                                            <ul class="dropdown-menu dropdown-only-icon dropdown-yellow dropdown-menu-right dropdown-caret dropdown-close">


                                                <li>
                                                    <a href='{:url("info","id=$vo[id]")}' class="tooltip-success" data-rel="tooltip" title="Edit">
                                                        <span class="green">
                                                            <i class="ace-icon fa fa-pencil-square-o bigger-120"></i>
                                                        </span>
                                                    </a>
                                                </li>

                                                <li>
                                                    <a href='javascript:void(0)' onclick="return alert_del('{:url(\"del\",\"id=$vo[id]\")}', '确认要拉黑『 id={$vo.id} 』这条记录吗？');" class="tooltip-error" data-rel="tooltip" title="Delete">
                                                        <span class="red">
                                                            <i class="ace-icon fa fa-trash-o bigger-120"></i>
                                                        </span>
                                                    </a>
                                                </li>
                                            </ul>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            {/volist}
                        </tbody>

                    </table>
                </div><!-- /.span -->
            </div><!-- /.row -->
             {$data->render()}




            <!-- PAGE CONTENT ENDS -->
        </div><!-- /.col -->
    </div><!-- /.row -->
</div><!-- /.page-content -->



